#include "halfEdge.h"
#include "edge.h"

HalfEdge::HalfEdge(int _id, Vertex *_v, Loop *_l, Edge *_e, HalfEdge *_he)
    : id(_id), vertex(_v), loop(_l), edge(_e), next(_he){}

HalfEdge *HalfEdge::getTwin() const{
    HalfEdge *twin = edge->getHE1();

    if(twin == this) return edge->getHE2();
    return twin;
}
